package com.person.modules.person.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.person.modules.person.dao.PunishmentDao;
import com.person.modules.person.entity.PunishmentEntity;
import com.person.modules.person.service.PunishmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("PunishmentService")
public class PunishmentServiceImpl extends ServiceImpl<PunishmentDao, PunishmentEntity> implements PunishmentService {
    @Autowired
    PunishmentDao punishmentDao;
    @Override
    public List<PunishmentEntity> getListByCompanyId(long companyId) {
        List<PunishmentEntity> list =punishmentDao.getListByCompanyId(companyId);
        return list;
    }

    @Override
    public List<PunishmentEntity> getList(long companyId, long userId) {
        List<PunishmentEntity> list =punishmentDao.getList(companyId,userId);
        return  list;
    }
}
